import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/chat.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'welcome',
    component: ()=>import("@/views/welcome")
  },
  {
    path: '/login',
    name: 'login',
    component: ()=>import("@/views/login")
  },
  {
    path: '/register',
    name: 'register',
    component:()=>import("@/views/register")
  },
  {
    path: '/index',
    name:"index",
    component:()=>import("@/views/index")
  },
  {
    path: '/chat',
    name: 'chat',
    component:()=>import('@/views/chat')
  },
  {
  path: '/wechat',
    name: 'wechat',
    component:()=>import('@/views/wechat')
  },
  {
    path: '/group',
    name: 'group',
    component:()=>import('@/views/group')
  },
  {
    path: '/groupInfo',
    name:'groupInfo',
    component:()=>import('@/views/groupInfo')
  },
  {
    path: '/group_owner',
    name:"group_owner",
    component:()=>import('@/views/group_owner')
  }
]

const router = new VueRouter({
  routes
})

export default router
